# one key install python devel environment requirement libs
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-18.0.1.tar.gz#md5=cecd172c9ff7fd5f2e16b2fcc88bba51
tar -zxvf setuptools-18.0.1.tar.gz
cd setuptools-18.0.1
python setup.py install
cd ..


wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-7.1.0.tar.gz#md5=d935ee9146074b1d3f26c5f0acfd120e
tar -zxvf pip-7.1.0.tar.gz
cd pip-7.1.0
python setup.py install
cd ..



git clone https://github.com/unbit/uwsgi.git
cd uwsgi
python setup.py install
cd ..

pip install cherrypy==3.8.0
pip install sqlalchemy==1.0.6
pip install jinja2==2.7.3
pip install mysql-python==1.2.5

git clone https://git.oschina.net/caibird/elixir.git
cd elixir
python setup.py install
cd ..


wget http://nginx.org/download/nginx-1.8.0.tar.gz
tar -zxvf nginx-1.8.0.tar.gz
cd nginx-1.8.0
./configure --prefix=/usr/local/nginx-1.8.0
make && make install
ln -s /usr/local/nginx-1.8.0/sbin/nginx /usr/bin/nginx
nginx -c /usr/local/nginx-1.8.0/conf/nginx.conf
nginx -s reload

wget http://download.redis.io/releases/redis-3.0.2.tar.gz
tar -zxvf redis-3.0.2.tar.gz
cd redis-3.0.2
make
src/server&

pip install python-memcached==1.54
pip install redis==2.10.3

wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
tar -zxvf Imaging-1.1.7.tar.gz
cd Imaging-1.1.7
python setup.py install
cd ..